#ifndef NOTIFIER_H
#define NOTIFIER_H

#include <QObject>
#include <QTcpServer>
#include <QTcpSocket>
#include <QNetworkSession>

#include "Event.h"
#include "NotifyWindow.h"

class Notifier: public QObject
{
    Q_OBJECT
public:
    Notifier(QObject *parent = 0);

private:
    QNetworkSession *m_networkSession;
    QTcpServer m_tcpServer;
    QTcpSocket *m_tcpSocket;
    NotifyWindow notify;

private slots:
    void sessionOpened();
    void connected();
    void readNotify();
};

#endif // NOTIFIER_H
